package io.renren.modules.yst.utils;

import cn.hutool.json.JSON;
import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil;
import com.alibaba.druid.support.json.JSONUtils;
import springfox.documentation.spring.web.json.Json;

public class OxyBleUtils {

    public static void main(String[] args) {

        String a="5500ff000000027b22526567696f6e223a224345222c224d6f64656c223a2231363532222c224861726477617265566572223a224141222c22536f667477617265566572223a22312e362e30222c22426f6f746c6f61646572566572223a22312e312e302e30222c2246696c65566572223a2233222c2253504350566572223a22312e33222c224170706c69636174696f6e223a22222c22534e223a2232313038324331363938222c2243757254494d45223a22323032322d30312d32372c31363a31323a3434222c22437572424154223a22343725222c224375724261745374617465223a2230222c224375724f7869546872223a223838222c224375724d6f746f72223a223630222c22437572506564746172223a223939393939222c224375724d6f6465223a2230222c224375725374617465223a2231222c224c69676874696e674d6f6465223a2230222c224852537769746368223a2230222c2248524c6f77546872223a223530222c22485248696768546872223a22313230222c224c69676874537472223a2231222c224f7869537769746368223a2231222c224272616e6368436f6465223a223234303130303033222c2246696c654c697374223a2232303232303132353135313333312c32303232303132343135303833342c32303232303132343135313631372c32303232303132353134303332332c227d00000000000037";





    }

    public static byte[] hexStringToByteArray(String s) {
        int len = s.length();
        byte[] data = new byte[len / 2];
        for (int i = 0; i < len; i += 2) {
            data[i / 2] = (byte) ((Character.digit(s.charAt(i), 16) << 4)
                    + Character.digit(s.charAt(i+1), 16));
        }
        return data;
    }


}
